package controlador.logica;

import java.sql.SQLException;

import dao.gestion.Familias;
import dao.gestion.dao.FamiliasDAO;
import dao.gestion.orm.Conexion;
import dao.gestion.orm.FamiliasDAOImpl;

public class FamiliaLogica {

	public void alta(Familias bean) {
		Conexion c = Conexion.getInstancia();
		try {

			c.conectar();

			FamiliasDAO fdao = new FamiliasDAOImpl();

			fdao.create(bean, c.getConexion());
		} catch (SQLException e) {
			e.printStackTrace();
		} finally {
			c.desconectar();
		}
	}
}
